home *** CD-ROM | disk | FTP | other *** search
- // Testing heightfields...
- //
- // Logo.gif is the mgif.img inverted and blurred several times to
- // get rounder shape.
- //
- // Run first with:
- // pov -ilogo.pov -w160 -h100 -q4 (input, width, height, quality)
- //
- // If you'll like it, make a bigger logo.gif and render a full picture:
- // pov -ilogo.pov -w640 -h400 +a (full quality, antialiased)
- //
- // 2.11.1995, Eero Tamminen
-
- height_field { // inside 1x1x1 cube at <0,0,0>
- gif "logo.gif" // grayscale height field gif
- smooth
- pigment { // coloring
- gradient y // from black at bottom-0 to white at top-1
- color_map { // specify a color range for the object
- [ 0, 1 color rgb <0.3, 0.3, 0.2>
- color rgb <0.8, 1.0, 0.9> ]
- }
- }
- finish { // surface properties
- ambient 0.2 // overall (minimum) color intensity
- phong 1 // highlight(s)
- }
- translate <-0.5, -0.5, -0.5> // move to the origo
- scale <8, 0.5, 4> // resize into 8x0.5x4
- }
-
- light_source { // a spotlight
- <3, 3.5, 4> // reflects near the letter i
- color rgb <1, 1, 0> // yellow
- }
-
- camera { // pinhole camera (everything in-focus)
- location <0, 5, -4>
- look_at <0, 0, 0>
- }
-